
all: 
	cd lex; make clean; make; cp calc ../p1;
	cd yacc; make clean; make; cp calc ../p2;
	cd lexyacc; make clean; make; cp calc ../p3;

clean:
	rm -f p1 p2 p3
	cd lex; make clean;
	cd yacc; make clean;
	cd lexyacc; make clean;
